Dimensions.fromJson constructor

Dimensions.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory Dimensions.fromJson(Map<String, Object?> json) => Dimensions(
      physical: json["physical"] == null
          ? null
          : DimensionsPhysical.fromJson(
              (json["physical"] as Map).cast<String, Object?>(),
            ),
      digital: json["digital"] == null
          ? null
          : DimensionsDigital.fromJson(
              (json["digital"] as Map).cast<String, Object?>(),
            ),
      custom: json["custom"] == null
          ? null
          : DimensionsCustom.fromJson(
              (json["custom"] as Map).cast<String, Object?>(),
            ),
    );