fromJson static method

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

Implementation

static JsonObjectMember? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return JsonObjectMember(
    key: (json['key'] as String?) ?? '',
    value: JsonValue.fromJson(json['value'] as Map<String, dynamic>?)!,
  );
}