wip: bloc for files
This commit is contained in:
		| @@ -9,7 +9,7 @@ part of 'fileSharingApiParams.dart'; | ||||
| FileSharingApiParams _$FileSharingApiParamsFromJson( | ||||
|         Map<String, dynamic> json) => | ||||
|     FileSharingApiParams( | ||||
|       shareType: json['shareType'] as int, | ||||
|       shareType: (json['shareType'] as num).toInt(), | ||||
|       shareWith: json['shareWith'] as String, | ||||
|       path: json['path'] as String, | ||||
|       referenceId: json['referenceId'] as String?, | ||||
|   | ||||
| @@ -10,10 +10,10 @@ GetChatParams _$GetChatParamsFromJson(Map<String, dynamic> json) => | ||||
|     GetChatParams( | ||||
|       lookIntoFuture: | ||||
|           $enumDecode(_$GetChatParamsSwitchEnumMap, json['lookIntoFuture']), | ||||
|       limit: json['limit'] as int?, | ||||
|       lastKnownMessageId: json['lastKnownMessageId'] as int?, | ||||
|       lastCommonReadId: json['lastCommonReadId'] as int?, | ||||
|       timeout: json['timeout'] as int?, | ||||
|       limit: (json['limit'] as num?)?.toInt(), | ||||
|       lastKnownMessageId: (json['lastKnownMessageId'] as num?)?.toInt(), | ||||
|       lastCommonReadId: (json['lastCommonReadId'] as num?)?.toInt(), | ||||
|       timeout: (json['timeout'] as num?)?.toInt(), | ||||
|       setReadMarker: $enumDecodeNullable( | ||||
|           _$GetChatParamsSwitchEnumMap, json['setReadMarker']), | ||||
|       includeLastKnown: $enumDecodeNullable( | ||||
|   | ||||
| @@ -32,13 +32,13 @@ Map<String, dynamic> _$GetChatResponseToJson(GetChatResponse instance) { | ||||
| GetChatResponseObject _$GetChatResponseObjectFromJson( | ||||
|         Map<String, dynamic> json) => | ||||
|     GetChatResponseObject( | ||||
|       json['id'] as int, | ||||
|       (json['id'] as num).toInt(), | ||||
|       json['token'] as String, | ||||
|       $enumDecode( | ||||
|           _$GetRoomResponseObjectMessageActorTypeEnumMap, json['actorType']), | ||||
|       json['actorId'] as String, | ||||
|       json['actorDisplayName'] as String, | ||||
|       json['timestamp'] as int, | ||||
|       (json['timestamp'] as num).toInt(), | ||||
|       json['systemMessage'] as String, | ||||
|       $enumDecode( | ||||
|           _$GetRoomResponseObjectMessageTypeEnumMap, json['messageType']), | ||||
| @@ -47,7 +47,7 @@ GetChatResponseObject _$GetChatResponseObjectFromJson( | ||||
|       json['message'] as String, | ||||
|       _fromJson(json['messageParameters']), | ||||
|       (json['reactions'] as Map<String, dynamic>?)?.map( | ||||
|         (k, e) => MapEntry(k, e as int), | ||||
|         (k, e) => MapEntry(k, (e as num).toInt()), | ||||
|       ), | ||||
|       (json['reactionsSelf'] as List<dynamic>?) | ||||
|           ?.map((e) => e as String) | ||||
|   | ||||
| @@ -8,7 +8,7 @@ part of 'createRoomParams.dart'; | ||||
|  | ||||
| CreateRoomParams _$CreateRoomParamsFromJson(Map<String, dynamic> json) => | ||||
|     CreateRoomParams( | ||||
|       roomType: json['roomType'] as int, | ||||
|       roomType: (json['roomType'] as num).toInt(), | ||||
|       invite: json['invite'] as String, | ||||
|       source: json['source'] as String?, | ||||
|       roomName: json['roomName'] as String?, | ||||
|   | ||||
| @@ -35,17 +35,17 @@ Map<String, dynamic> _$GetParticipantsResponseToJson( | ||||
| GetParticipantsResponseObject _$GetParticipantsResponseObjectFromJson( | ||||
|         Map<String, dynamic> json) => | ||||
|     GetParticipantsResponseObject( | ||||
|       json['attendeeId'] as int, | ||||
|       (json['attendeeId'] as num).toInt(), | ||||
|       json['actorType'] as String, | ||||
|       json['actorId'] as String, | ||||
|       json['displayName'] as String, | ||||
|       $enumDecode(_$GetParticipantsResponseObjectParticipantTypeEnumMap, | ||||
|           json['participantType']), | ||||
|       json['lastPing'] as int, | ||||
|       (json['lastPing'] as num).toInt(), | ||||
|       $enumDecode(_$GetParticipantsResponseObjectParticipantsInCallFlagsEnumMap, | ||||
|           json['inCall']), | ||||
|       json['permissions'] as int, | ||||
|       json['attendeePermissions'] as int, | ||||
|       (json['permissions'] as num).toInt(), | ||||
|       (json['attendeePermissions'] as num).toInt(), | ||||
|       json['sessionId'] as String?, | ||||
|       (json['sessionIds'] as List<dynamic>).map((e) => e as String).toList(), | ||||
|       json['status'] as String?, | ||||
|   | ||||
| @@ -44,7 +44,7 @@ GetReactionsResponseObject _$GetReactionsResponseObjectFromJson( | ||||
|           _$GetReactionsResponseObjectActorTypeEnumMap, json['actorType']), | ||||
|       json['actorId'] as String, | ||||
|       json['actorDisplayName'] as String, | ||||
|       json['timestamp'] as int, | ||||
|       (json['timestamp'] as num).toInt(), | ||||
|     ); | ||||
|  | ||||
| Map<String, dynamic> _$GetReactionsResponseObjectToJson( | ||||
|   | ||||
| @@ -11,7 +11,7 @@ GetRoomParams _$GetRoomParamsFromJson(Map<String, dynamic> json) => | ||||
|       noStatusUpdate: $enumDecodeNullable( | ||||
|           _$GetRoomParamsStatusUpdateEnumMap, json['noStatusUpdate']), | ||||
|       includeStatus: json['includeStatus'] as bool?, | ||||
|       modifiedSince: json['modifiedSince'] as int?, | ||||
|       modifiedSince: (json['modifiedSince'] as num?)?.toInt(), | ||||
|     ); | ||||
|  | ||||
| Map<String, dynamic> _$GetRoomParamsToJson(GetRoomParams instance) => | ||||
|   | ||||
| @@ -32,33 +32,33 @@ Map<String, dynamic> _$GetRoomResponseToJson(GetRoomResponse instance) { | ||||
| GetRoomResponseObject _$GetRoomResponseObjectFromJson( | ||||
|         Map<String, dynamic> json) => | ||||
|     GetRoomResponseObject( | ||||
|       json['id'] as int, | ||||
|       (json['id'] as num).toInt(), | ||||
|       json['token'] as String, | ||||
|       $enumDecode(_$GetRoomResponseObjectConversationTypeEnumMap, json['type']), | ||||
|       json['name'] as String, | ||||
|       json['displayName'] as String, | ||||
|       json['description'] as String, | ||||
|       json['participantType'] as int, | ||||
|       json['participantFlags'] as int, | ||||
|       json['readOnly'] as int, | ||||
|       json['listable'] as int, | ||||
|       json['lastPing'] as int, | ||||
|       (json['participantType'] as num).toInt(), | ||||
|       (json['participantFlags'] as num).toInt(), | ||||
|       (json['readOnly'] as num).toInt(), | ||||
|       (json['listable'] as num).toInt(), | ||||
|       (json['lastPing'] as num).toInt(), | ||||
|       json['sessionId'] as String, | ||||
|       json['hasPassword'] as bool, | ||||
|       json['hasCall'] as bool, | ||||
|       json['callFlag'] as int, | ||||
|       (json['callFlag'] as num).toInt(), | ||||
|       json['canStartCall'] as bool, | ||||
|       json['canDeleteConversation'] as bool, | ||||
|       json['canLeaveConversation'] as bool, | ||||
|       json['lastActivity'] as int, | ||||
|       (json['lastActivity'] as num).toInt(), | ||||
|       json['isFavorite'] as bool, | ||||
|       $enumDecode(_$GetRoomResponseObjectParticipantNotificationLevelEnumMap, | ||||
|           json['notificationLevel']), | ||||
|       json['unreadMessages'] as int, | ||||
|       (json['unreadMessages'] as num).toInt(), | ||||
|       json['unreadMention'] as bool, | ||||
|       json['unreadMentionDirect'] as bool, | ||||
|       json['lastReadMessage'] as int, | ||||
|       json['lastCommonReadMessage'] as int, | ||||
|       (json['lastReadMessage'] as num).toInt(), | ||||
|       (json['lastCommonReadMessage'] as num).toInt(), | ||||
|       GetChatResponseObject.fromJson( | ||||
|           json['lastMessage'] as Map<String, dynamic>), | ||||
|       json['status'] as String?, | ||||
|   | ||||
| @@ -8,7 +8,7 @@ part of 'setReadMarkerParams.dart'; | ||||
|  | ||||
| SetReadMarkerParams _$SetReadMarkerParamsFromJson(Map<String, dynamic> json) => | ||||
|     SetReadMarkerParams( | ||||
|       lastReadMessage: json['lastReadMessage'] as int?, | ||||
|       lastReadMessage: (json['lastReadMessage'] as num?)?.toInt(), | ||||
|     ); | ||||
|  | ||||
| Map<String, dynamic> _$SetReadMarkerParamsToJson( | ||||
|   | ||||
| @@ -12,7 +12,7 @@ CacheableFile _$CacheableFileFromJson(Map<String, dynamic> json) => | ||||
|       isDirectory: json['isDirectory'] as bool, | ||||
|       name: json['name'] as String, | ||||
|       mimeType: json['mimeType'] as String?, | ||||
|       size: json['size'] as int?, | ||||
|       size: (json['size'] as num?)?.toInt(), | ||||
|       eTag: json['eTag'] as String?, | ||||
|       createdAt: json['createdAt'] == null | ||||
|           ? null | ||||
|   | ||||
		Reference in New Issue
	
	Block a user