SetEndUserCustomClaimsBody.fromJson constructor

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

Implementation

factory SetEndUserCustomClaimsBody.fromJson(Map<String, Object?> json) =>
    SetEndUserCustomClaimsBody(
      claims: (json['claims'] as Map).cast<String, Object?>().map(
        (key, value) => MapEntry(key, CustomClaimValue.fromJson(value)),
      ),
      expectedRevision: (json['expectedRevision'] as num?)?.toInt(),
    );