toMap method

Map<String, dynamic> toMap()

It converts the object into a map.

Returns: A map of the data in the class.

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'large': large,
    'medium': medium,
    'thumbnail': thumbnail,
  };
}