toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'action': action,
    'accepts': accepts.map((e) => e.toJson()).toList(),
    'displayName': displayName,
  };
}