GoalData.fromJson constructor

GoalData.fromJson(
  1. Map json_
)

Implementation

GoalData.fromJson(core.Map json_)
    : this(
        goalCompletionLocation: json_.containsKey('goalCompletionLocation')
            ? json_['goalCompletionLocation'] as core.String
            : null,
        goalCompletions: json_.containsKey('goalCompletions')
            ? json_['goalCompletions'] as core.String
            : null,
        goalIndex: json_.containsKey('goalIndex')
            ? json_['goalIndex'] as core.int
            : null,
        goalName: json_.containsKey('goalName')
            ? json_['goalName'] as core.String
            : null,
        goalPreviousStep1: json_.containsKey('goalPreviousStep1')
            ? json_['goalPreviousStep1'] as core.String
            : null,
        goalPreviousStep2: json_.containsKey('goalPreviousStep2')
            ? json_['goalPreviousStep2'] as core.String
            : null,
        goalPreviousStep3: json_.containsKey('goalPreviousStep3')
            ? json_['goalPreviousStep3'] as core.String
            : null,
        goalValue: json_.containsKey('goalValue')
            ? (json_['goalValue'] as core.num).toDouble()
            : null,
      );