toJson method

Map<String, dynamic> toJson()

Returns the data fields of NotificationIcon in JSON format.

Implementation

Map<String, dynamic> toJson() {
  return {
    'metaDataName': metaDataName,
    'backgroundColorRgb': backgroundColor?.toRgbString,
  };
}