toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  List<Map<String, dynamic>>? actions = this.actions!.map((i) => i.toJson()).toList();
  return {
    'identifier': identifier,
    'actions': actions
  };
}