toJson method

Map<String, Object> toJson()

Converts a StatefulSetOrdinals instance to JSON data.

Implementation

Map<String, Object> toJson() {
  final jsonData = <String, Object>{};

  final tempStart = start;

  if (tempStart != null) {
    jsonData['start'] = tempStart;
  }

  return jsonData;
}