ProposalSummary.fromJson constructor

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

Implementation

factory ProposalSummary.fromJson(Map<String, dynamic> json) {
  return ProposalSummary(
    creationDate: timeStampFromJson(json['CreationDate']),
    description: json['Description'] as String?,
    expirationDate: timeStampFromJson(json['ExpirationDate']),
    proposalId: json['ProposalId'] as String?,
    proposedByMemberId: json['ProposedByMemberId'] as String?,
    proposedByMemberName: json['ProposedByMemberName'] as String?,
    status: (json['Status'] as String?)?.toProposalStatus(),
  );
}