toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => <String, Object?>{
      'name': name ?? '',
      'comment': comment ?? '',
      'modified': modified ?? false,
      if (valueAsString case final valueAsStringValue?)
        'valueAsString': valueAsStringValue,
    };