ApiParser<E> class

Constructors

ApiParser({Map<String, E> errorMessages, E defaultErrorMessage, Map<String, Map<String, E>> fieldErrorMessages: const {}})

Properties

defaultErrorMessage → E
final
errorMessages Map<String, E>
final
fieldErrorMessages Map<String, Map<String, E>>
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getErrors(List<ErrorMessage> errors) List<ParserMessageEntity<E>>
getFieldMessageFromCode(String field, String errorCode) → E
getFirstMessage(List<ErrorMessage> errors) → E
getMessage(ErrorMessage error) → E
getMessageFromCode(String errorCode) → E
getParserResponse<T>(ApiResponse<T> response) ParserResponse<T, E>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
parse<T>(ApiResponse<T> response) ApiParserResponse<T, E>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited