ProposalActions.fromJson constructor

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

Implementation

factory ProposalActions.fromJson(Map<String, dynamic> json) {
  return ProposalActions(
    invitations: (json['Invitations'] as List?)
        ?.whereNotNull()
        .map((e) => InviteAction.fromJson(e as Map<String, dynamic>))
        .toList(),
    removals: (json['Removals'] as List?)
        ?.whereNotNull()
        .map((e) => RemoveAction.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}