Profile.fromJson constructor

Profile.fromJson(
  1. Map json_
)

Implementation

Profile.fromJson(core.Map json_)
  : this(
      age: json_['age'] as core.int?,
      autoRunningStrideLengthMm:
          json_['autoRunningStrideLengthMm'] as core.int?,
      autoWalkingStrideLengthMm:
          json_['autoWalkingStrideLengthMm'] as core.int?,
      membershipStartDate: json_.containsKey('membershipStartDate')
          ? Date.fromJson(
              json_['membershipStartDate']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      name: json_['name'] as core.String?,
      userConfiguredRunningStrideLengthMm:
          json_['userConfiguredRunningStrideLengthMm'] as core.int?,
      userConfiguredWalkingStrideLengthMm:
          json_['userConfiguredWalkingStrideLengthMm'] as core.int?,
    );