FbiImage.fromJson constructor

FbiImage.fromJson(
  1. Map<String, dynamic> json
)

Creates a FbiImage object from a JSON object.

Implementation

factory FbiImage.fromJson(Map<String, dynamic> json) {
  return FbiImage(
    originalUrl: json[ApiFields.originalUrl],
    thumbUrl: json[ApiFields.thumbUrl],
    largeUrl: json[ApiFields.largeUrl],
    caption: json[ApiFields.caption],
  );
}