SigningImageFormat.fromJson constructor

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

Implementation

factory SigningImageFormat.fromJson(Map<String, dynamic> json) {
  return SigningImageFormat(
    defaultFormat: (json['defaultFormat'] as String).toImageFormat(),
    supportedFormats: (json['supportedFormats'] as List)
        .whereNotNull()
        .map((e) => (e as String).toImageFormat())
        .toList(),
  );
}