GoogleAppsCardV1ImageComponent.fromJson constructor

GoogleAppsCardV1ImageComponent.fromJson(
  1. Map json_
)

Implementation

GoogleAppsCardV1ImageComponent.fromJson(core.Map json_)
    : this(
        altText: json_.containsKey('altText')
            ? json_['altText'] as core.String
            : null,
        borderStyle: json_.containsKey('borderStyle')
            ? GoogleAppsCardV1BorderStyle.fromJson(
                json_['borderStyle'] as core.Map<core.String, core.dynamic>)
            : null,
        cropStyle: json_.containsKey('cropStyle')
            ? GoogleAppsCardV1ImageCropStyle.fromJson(
                json_['cropStyle'] as core.Map<core.String, core.dynamic>)
            : null,
        imageUri: json_.containsKey('imageUri')
            ? json_['imageUri'] as core.String
            : null,
      );