fromMap static method

Medium fromMap(
  1. Map map
)

Implementation

static Medium fromMap(Map map) {
  return Medium(
    id: map['id'],
    filename: map['filename'],
    title: map['title'],
    mediumType: jsonToMediumType(map['mediumType']),
    width: map['width'],
    height: map['height'],
    orientation: map['orientation'],
    mimeType: map["mimeType"],
    creationDate: map['creationDate'],
    modifiedDate: map['modifiedDate'],
  );
}