create method Null safety

ErrorDescription create(
  1. dynamic error
)

Creates a serializable ErrorDescription from error object.

  • error an error object Returns a serializeable ErrorDescription object that describes the error.