toJson method

Map<String, dynamic> toJson()

Serializes this CommandResponse to JSON.

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
      'WasSuccessful': success,
      'ValidationErrors': errors.map((error) => error.toJson()).toList(),
    };