toJson method

Map<String, dynamic> toJson()

Serializes this ValidationError to JSON.

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
      'ErrorCode': code,
      'ErrorMessage': message,
      'PropertyName': propertyName
    };