ESMapConv

given ESMapConv[K, V]: NativeConverter[Map[K, V]]

Value members

Concrete methods

def fromNativeE(ps: ParseState): Either[String, Map[K, V]]

Inherited methods

def fromJson(json: String): Map[K, V]

Convert a Json String to type A. Returns A, or throws.

Convert a Json String to type A. Returns A, or throws.

Inherited from
NativeConverter
def fromJsonE(json: String): Either[String, Map[K, V]]

Convert a Json String to type A. Returns either A, or a String error.

Convert a Json String to type A. Returns either A, or a String error.

Inherited from
NativeConverter
def fromNative(nativeJs: Any): Map[K, V]

Convert a native Javascript type to Scala.js. Returns A, or throws.

Convert a native Javascript type to Scala.js. Returns A, or throws.

Inherited from
NativeConverter
def fromNativeE(nativeJs: Any): Either[String, Map[K, V]]

Convert a native Javascript type to Scala.js. Returns either A, or a String error.

Convert a native Javascript type to Scala.js. Returns either A, or a String error.

Inherited from
NativeConverter

Extensions

Extensions

extension (t: Map[K, V])
def toNative: Any

Inherited extensions

extension (a: A)
def toJson: String

Convert type A to a JSON string

Convert type A to a JSON string

Inherited from
NativeConverter