fromJson static method

PeamanFileUrl fromJson(
  1. Map<String, dynamic> data
)

Implementation

static PeamanFileUrl fromJson(final Map<String, dynamic> data) {
  return PeamanFileUrl(
    url: data['url'],
    type: PeamanFileType.values[data['type'] ?? 0],
  );
}