UserActivitySession.fromJson constructor

UserActivitySession.fromJson(
  1. Map json_
)

Implementation

UserActivitySession.fromJson(core.Map json_)
    : this(
        activities: json_.containsKey('activities')
            ? (json_['activities'] as core.List)
                .map((value) => Activity.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        dataSource: json_.containsKey('dataSource')
            ? json_['dataSource'] as core.String
            : null,
        deviceCategory: json_.containsKey('deviceCategory')
            ? json_['deviceCategory'] as core.String
            : null,
        platform: json_.containsKey('platform')
            ? json_['platform'] as core.String
            : null,
        sessionDate: json_.containsKey('sessionDate')
            ? json_['sessionDate'] as core.String
            : null,
        sessionId: json_.containsKey('sessionId')
            ? json_['sessionId'] as core.String
            : null,
      );