QueryKeysResponse.fromJson constructor

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

Implementation

QueryKeysResponse.fromJson(Map<String, Object?> json)
    : deviceKeys = ((v) => v != null
          ? (v as Map<String, Object?>).map((k, v) => MapEntry(
              k,
              (v as Map<String, Object?>).map((k, v) => MapEntry(
                  k, SDNDeviceKeys.fromJson(v as Map<String, Object?>)))))
          : null)(json['device_keys']),
      failures = ((v) => v != null
          ? (v as Map<String, Object?>)
              .map((k, v) => MapEntry(k, v as Map<String, Object?>))
          : null)(json['failures']),
      masterKeys = ((v) => v != null
          ? (v as Map<String, Object?>).map((k, v) => MapEntry(
              k, SDNCrossSigningKey.fromJson(v as Map<String, Object?>)))
          : null)(json['master_keys']),
      selfSigningKeys = ((v) => v != null
          ? (v as Map<String, Object?>).map((k, v) => MapEntry(
              k, SDNCrossSigningKey.fromJson(v as Map<String, Object?>)))
          : null)(json['self_signing_keys']),
      userSigningKeys = ((v) => v != null
          ? (v as Map<String, Object?>).map((k, v) => MapEntry(
              k, SDNCrossSigningKey.fromJson(v as Map<String, Object?>)))
          : null)(json['user_signing_keys']);