ImageSource.fromJson constructor

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

Implementation

factory ImageSource.fromJson(Map<String, dynamic> json) => ImageSource(
      type: ImageSourceType.values.byName(json["type"] as String),
      filePath:
          (json["filePath"] != null ? json["filePath"] as String : null),
    );