toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() {
  final color = this.color;
  final type = this.type;
  return {'color': ?color, 'type': ?type};
}