toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final size = this.size;
  return {
    if (size != null) 'size': size,
  };
}