fromJson static method

IrImageAsset fromJson(
  1. String key,
  2. Map<String, Object?> json
)

Implementation

static IrImageAsset fromJson(String key, Map<String, Object?> json) =>
    IrImageAsset(
      key: key,
      format: json['format'] as String,
      width: _d(json['width'])!,
      height: _d(json['height'])!,
      data: base64Decode(json['data'] as String),
    );