MultiSelectOption.fromJson constructor

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

Create a new multi select instance from json.

Receive a json from where the information is extracted.

Implementation

MultiSelectOption.fromJson(Map<String, dynamic> json)
    : this.name = json['name'] ?? '',
      this.id = json['id'],
      this.color = stringToColorType(json['color'] ?? '');