toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (currentAction != null) 'currentAction': currentAction!,
      if (id != null) 'id': id!,
      if (instance != null) 'instance': instance!,
      if (instanceHealth != null) 'instanceHealth': instanceHealth!,
      if (instanceStatus != null) 'instanceStatus': instanceStatus!,
      if (lastAttempt != null) 'lastAttempt': lastAttempt!,
      if (name != null) 'name': name!,
      if (preservedStateFromConfig != null)
        'preservedStateFromConfig': preservedStateFromConfig!,
      if (preservedStateFromPolicy != null)
        'preservedStateFromPolicy': preservedStateFromPolicy!,
      if (version != null) 'version': version!,
    };