Action.fromJson constructor

Action.fromJson(
  1. Map json_
)

Implementation

Action.fromJson(core.Map json_)
    : this(
        actor: json_.containsKey('actor')
            ? Actor.fromJson(
                json_['actor'] as core.Map<core.String, core.dynamic>)
            : null,
        detail: json_.containsKey('detail')
            ? ActionDetail.fromJson(
                json_['detail'] as core.Map<core.String, core.dynamic>)
            : null,
        target: json_.containsKey('target')
            ? Target.fromJson(
                json_['target'] as core.Map<core.String, core.dynamic>)
            : 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,
      );