toMap method

Map toMap()

Implementation

Map toMap() {
  return {
    if (uid != null) "uid": uid,
    if (role != null) "role": role,
    if (state != null) "state": state,
  };
}