accountStateToJson function

String? accountStateToJson(
  1. AccountState? state
)

Various serialization converters

Implementation

String? accountStateToJson(AccountState? state) {
  return state == null
      ? null
      : state == AccountState.LISTED ? "listed" : "normal";
}