Screen.fromJson constructor

Screen.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory Screen.fromJson(Map<String, Object?> json) {
  return Screen(
    description: json[r'description'] as String?,
    id: (json[r'id'] as num?)?.toInt(),
    name: json[r'name'] as String?,
    scope: json[r'scope'] != null
        ? Scope.fromJson(json[r'scope']! as Map<String, Object?>)
        : null,
  );
}