GetOsAppStateResult.fromJson constructor

GetOsAppStateResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetOsAppStateResult.fromJson(Map<String, dynamic> json) {
  return GetOsAppStateResult(
    badgeCount: json['badgeCount'] as int,
    fileHandlers: (json['fileHandlers'] as List)
        .map((e) => FileHandler.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}