StatusDetails.fromJson constructor

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

Implementation

factory StatusDetails.fromJson(Map<String, Object?> json) {
  return StatusDetails(
    description: json[r'description'] as String?,
    iconUrl: json[r'iconUrl'] as String?,
    id: json[r'id'] as String?,
    name: json[r'name'] as String?,
    self: json[r'self'] as String?,
    statusCategory: json[r'statusCategory'] != null
        ? StatusCategory.fromJson(
            json[r'statusCategory']! as Map<String, Object?>)
        : null,
  );
}