RemoteObject.fromJson constructor

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

Implementation

factory RemoteObject.fromJson(Map<String, Object?> json) {
  return RemoteObject(
    icon: json[r'icon'] != null
        ? Icon.fromJson(json[r'icon']! as Map<String, Object?>)
        : null,
    status: json[r'status'] != null
        ? Status.fromJson(json[r'status']! as Map<String, Object?>)
        : null,
    summary: json[r'summary'] as String?,
    title: json[r'title'] as String? ?? '',
    url: json[r'url'] as String? ?? '',
  );
}