@override Object toJson() => { 'fieldPath': fieldPath, 'type': type.toJson(), if (createTime != null) 'createTime': createTime!.toJson(), };