toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['xs'] = _xs;
  data['sm'] = _sm;
  data['md'] = _md;
  data['lg'] = _lg;
  data['xl'] = _xl;
  data['2xl'] = _d2xl;
  return data;
}