toJSON method

Map<String, dynamic> toJSON()
override

Implementation

Map<String, dynamic> toJSON() {
  String idKey = Platform.isAndroid ? 'id' : 'actionId';
  return {idKey: actionId, 'title': title};
}