TF-1665 Enable app grid on mobile
(cherry picked from commit c9f9a2c214316606c8d3f9d63cf38c326369b112)
This commit is contained in:
@@ -3,7 +3,7 @@ import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'linagora_app.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
@JsonSerializable(explicitToJson: true, includeIfNull: false)
|
||||
class LinagoraApp with EquatableMixin{
|
||||
@JsonKey(name: 'appName')
|
||||
final String appName;
|
||||
@@ -14,12 +14,32 @@ class LinagoraApp with EquatableMixin{
|
||||
@JsonKey(name: 'appLink')
|
||||
final Uri appUri;
|
||||
|
||||
LinagoraApp(this.appName, this.iconName, this.appUri);
|
||||
final String? androidPackageId;
|
||||
final String? iosUrlScheme;
|
||||
final String? iosAppStoreLink;
|
||||
|
||||
LinagoraApp(
|
||||
this.appName,
|
||||
this.iconName,
|
||||
this.appUri,
|
||||
{
|
||||
this.androidPackageId,
|
||||
this.iosUrlScheme,
|
||||
this.iosAppStoreLink
|
||||
}
|
||||
);
|
||||
|
||||
factory LinagoraApp.fromJson(Map<String, dynamic> json) => _$LinagoraAppFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$LinagoraAppToJson(this);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [appName, iconName, appUri];
|
||||
List<Object?> get props => [
|
||||
appName,
|
||||
iconName,
|
||||
appUri,
|
||||
androidPackageId,
|
||||
iosUrlScheme,
|
||||
iosAppStoreLink
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user