ConversionUtils class

A set of utilities for help in converting the JSON

Constructors

ConversionUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

createModelName(String name) → dynamic
This will generate a model name for the supplied attribute name the convention is
prepName(String name, {dynamic firstUpper = false}) String
create a JSON/Dart compatible version of the attribute found this will use camelCase and split if it finds an _ in the json attribute name i.e. age converts to age but age_now converts to ageNow this is to provide consistency when generating the object models name the original attribute name to convert
upperCaseFirst(String value) String
Helper function to convert the first char of a string to uppercase value the string to uppercase