ApprovalRule.fromJson constructor

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

Implementation

factory ApprovalRule.fromJson(Map<String, dynamic> json) {
  return ApprovalRule(
    approvalRuleContent: json['approvalRuleContent'] as String?,
    approvalRuleId: json['approvalRuleId'] as String?,
    approvalRuleName: json['approvalRuleName'] as String?,
    creationDate: timeStampFromJson(json['creationDate']),
    lastModifiedDate: timeStampFromJson(json['lastModifiedDate']),
    lastModifiedUser: json['lastModifiedUser'] as String?,
    originApprovalRuleTemplate: json['originApprovalRuleTemplate'] != null
        ? OriginApprovalRuleTemplate.fromJson(
            json['originApprovalRuleTemplate'] as Map<String, dynamic>)
        : null,
    ruleContentSha256: json['ruleContentSha256'] as String?,
  );
}