GetSigningProfileResponse.fromJson constructor

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

Implementation

factory GetSigningProfileResponse.fromJson(Map<String, dynamic> json) {
  return GetSigningProfileResponse(
    arn: json['arn'] as String?,
    overrides: json['overrides'] != null
        ? SigningPlatformOverrides.fromJson(
            json['overrides'] as Map<String, dynamic>)
        : null,
    platformDisplayName: json['platformDisplayName'] as String?,
    platformId: json['platformId'] as String?,
    profileName: json['profileName'] as String?,
    profileVersion: json['profileVersion'] as String?,
    profileVersionArn: json['profileVersionArn'] as String?,
    revocationRecord: json['revocationRecord'] != null
        ? SigningProfileRevocationRecord.fromJson(
            json['revocationRecord'] as Map<String, dynamic>)
        : null,
    signatureValidityPeriod: json['signatureValidityPeriod'] != null
        ? SignatureValidityPeriod.fromJson(
            json['signatureValidityPeriod'] as Map<String, dynamic>)
        : null,
    signingMaterial: json['signingMaterial'] != null
        ? SigningMaterial.fromJson(
            json['signingMaterial'] as Map<String, dynamic>)
        : null,
    signingParameters: (json['signingParameters'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    status: (json['status'] as String?)?.toSigningProfileStatus(),
    statusReason: json['statusReason'] as String?,
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}