AlphaReport.fromJson constructor

AlphaReport.fromJson(
  1. Map<String, dynamic> j
)

Implementation

factory AlphaReport.fromJson(Map<String, dynamic> j) => AlphaReport(
      _double(j['coverage']),
      _int(j['content_luma']) ?? 0,
      AlphaMode.from(j['mode']),
      _str(j['background']),
      j['fallback_used'] == true,
      j['envelope'] == null ? null : AlphaEnvelope.fromJson(_obj(j['envelope'])),
    );