Session.fromJson constructor

Session.fromJson(
  1. Map json_
)

Implementation

Session.fromJson(core.Map json_)
    : this(
        activeTimeMillis: json_.containsKey('activeTimeMillis')
            ? json_['activeTimeMillis'] as core.String
            : null,
        activityType: json_.containsKey('activityType')
            ? json_['activityType'] as core.int
            : null,
        application: json_.containsKey('application')
            ? Application.fromJson(
                json_['application'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        endTimeMillis: json_.containsKey('endTimeMillis')
            ? json_['endTimeMillis'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        modifiedTimeMillis: json_.containsKey('modifiedTimeMillis')
            ? json_['modifiedTimeMillis'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        startTimeMillis: json_.containsKey('startTimeMillis')
            ? json_['startTimeMillis'] as core.String
            : null,
      );