SigningJob.fromJson constructor

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

Implementation

factory SigningJob.fromJson(Map<String, dynamic> json) {
  return SigningJob(
    createdAt: timeStampFromJson(json['createdAt']),
    isRevoked: json['isRevoked'] as bool?,
    jobId: json['jobId'] as String?,
    jobInvoker: json['jobInvoker'] as String?,
    jobOwner: json['jobOwner'] as String?,
    platformDisplayName: json['platformDisplayName'] as String?,
    platformId: json['platformId'] as String?,
    profileName: json['profileName'] as String?,
    profileVersion: json['profileVersion'] as String?,
    signatureExpiresAt: timeStampFromJson(json['signatureExpiresAt']),
    signedObject: json['signedObject'] != null
        ? SignedObject.fromJson(json['signedObject'] as Map<String, dynamic>)
        : null,
    signingMaterial: json['signingMaterial'] != null
        ? SigningMaterial.fromJson(
            json['signingMaterial'] as Map<String, dynamic>)
        : null,
    source: json['source'] != null
        ? Source.fromJson(json['source'] as Map<String, dynamic>)
        : null,
    status: (json['status'] as String?)?.toSigningStatus(),
  );
}