Profile.fromJson constructor

Profile.fromJson(
  1. Map json_
)

Implementation

Profile.fromJson(core.Map json_)
    : this(
        deployment: json_.containsKey('deployment')
            ? Deployment.fromJson(
                json_['deployment'] as core.Map<core.String, core.dynamic>)
            : null,
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        profileBytes: json_.containsKey('profileBytes')
            ? json_['profileBytes'] as core.String
            : null,
        profileType: json_.containsKey('profileType')
            ? json_['profileType'] as core.String
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
      );