Activity.fromJson constructor

Activity.fromJson(
  1. Map json_
)

Implementation

Activity.fromJson(core.Map json_)
    : this(
        actor: json_.containsKey('actor')
            ? ActivityActor.fromJson(
                json_['actor'] as core.Map<core.String, core.dynamic>)
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        events: json_.containsKey('events')
            ? (json_['events'] as core.List)
                .map((value) => ActivityEvents.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        id: json_.containsKey('id')
            ? ActivityId.fromJson(
                json_['id'] as core.Map<core.String, core.dynamic>)
            : null,
        ipAddress: json_.containsKey('ipAddress')
            ? json_['ipAddress'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        ownerDomain: json_.containsKey('ownerDomain')
            ? json_['ownerDomain'] as core.String
            : null,
      );