ObaIcon.fromJson constructor

ObaIcon.fromJson(
  1. Map json_
)

Implementation

ObaIcon.fromJson(core.Map json_)
    : this(
        iconClickThroughUrl: json_.containsKey('iconClickThroughUrl')
            ? json_['iconClickThroughUrl'] as core.String
            : null,
        iconClickTrackingUrl: json_.containsKey('iconClickTrackingUrl')
            ? json_['iconClickTrackingUrl'] as core.String
            : null,
        iconViewTrackingUrl: json_.containsKey('iconViewTrackingUrl')
            ? json_['iconViewTrackingUrl'] as core.String
            : null,
        program: json_.containsKey('program')
            ? json_['program'] as core.String
            : null,
        resourceUrl: json_.containsKey('resourceUrl')
            ? json_['resourceUrl'] as core.String
            : null,
        size: json_.containsKey('size')
            ? Size.fromJson(
                json_['size'] as core.Map<core.String, core.dynamic>)
            : null,
        xPosition: json_.containsKey('xPosition')
            ? json_['xPosition'] as core.String
            : null,
        yPosition: json_.containsKey('yPosition')
            ? json_['yPosition'] as core.String
            : null,
      );