ObaIcon.fromJson constructor

ObaIcon.fromJson(
  1. Map json_
)

Implementation

ObaIcon.fromJson(core.Map json_)
    : this(
        clickTrackingUrl: json_.containsKey('clickTrackingUrl')
            ? json_['clickTrackingUrl'] as core.String
            : null,
        dimensions: json_.containsKey('dimensions')
            ? Dimensions.fromJson(
                json_['dimensions'] as core.Map<core.String, core.dynamic>)
            : null,
        landingPageUrl: json_.containsKey('landingPageUrl')
            ? json_['landingPageUrl'] as core.String
            : null,
        position: json_.containsKey('position')
            ? json_['position'] as core.String
            : null,
        program: json_.containsKey('program')
            ? json_['program'] as core.String
            : null,
        resourceMimeType: json_.containsKey('resourceMimeType')
            ? json_['resourceMimeType'] as core.String
            : null,
        resourceUrl: json_.containsKey('resourceUrl')
            ? json_['resourceUrl'] as core.String
            : null,
        viewTrackingUrl: json_.containsKey('viewTrackingUrl')
            ? json_['viewTrackingUrl'] as core.String
            : null,
      );