DriveActivity.fromJson constructor

DriveActivity.fromJson(
  1. Map json_
)

Implementation

DriveActivity.fromJson(core.Map json_)
    : this(
        actions: json_.containsKey('actions')
            ? (json_['actions'] as core.List)
                .map((value) => Action.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        actors: json_.containsKey('actors')
            ? (json_['actors'] as core.List)
                .map((value) => Actor.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        primaryActionDetail: json_.containsKey('primaryActionDetail')
            ? ActionDetail.fromJson(json_['primaryActionDetail']
                as core.Map<core.String, core.dynamic>)
            : null,
        targets: json_.containsKey('targets')
            ? (json_['targets'] as core.List)
                .map((value) => Target.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        timeRange: json_.containsKey('timeRange')
            ? TimeRange.fromJson(
                json_['timeRange'] as core.Map<core.String, core.dynamic>)
            : null,
        timestamp: json_.containsKey('timestamp')
            ? json_['timestamp'] as core.String
            : null,
      );